package com.yhb.channel.impl.SXY.ResponseParser;

import lombok.Data;

@Data
public class SXYResponseParser {
    private Status status;
    private String errorMessage;
    private String requestId;
    private String hmac;
    private String merchantId;

    public enum Status {
        SUCCESS,
        ERROR,
        FAIL,
        FAILED,
    }

    public boolean isOk() {
        return Status.SUCCESS.equals(this.status);
    }
    public boolean isNotOk() {
        return Status.ERROR.equals(this.status);
    }
}
